package DBLayer;
import ModelLayer.*;
import java.util.ArrayList;

public interface IFDBSupplier
{
	//get all suppliers in the database
	public ArrayList<Supplier> getAllSupp(boolean retrieveAssociation);
	
	//get a supplier by his id
	public Supplier getSuppById(int id, boolean retrieveAssociation);

	//get a supplier by his name
	public Supplier getSupplierByName(String name, boolean retrieveAssociation);
	
	//insert a supplier into the database
	public int insertSupplier(Supplier suppObj) throws Exception;
	
	//update a supplier from the database by its id
	public int updateSupplierByID(Supplier suppObj);
	
	//update a supplier from the database by its name
	public int updateSupplierByName(Supplier suppObj);
	
	//delete a supplier from the database by its ID
	public int deleteSupplierByID(int id);
	
	//delete a supplier from the database by its name
	public int deleteSupplierByName(String name);
}
